package event;

import filesystem.MyFile;


public class ChangeDirectoryEvent extends BroadcastEvent {

	/* (non-Javadoc)
	 * @see org.jfm.event.BroadcastEvent#getType()
	 */
	public int getType() {
		return BroadcastEvent.CHANGE_DIR_TYPE;
	}
	
  public ChangeDirectoryEvent() {
    this(null);
  }

  public ChangeDirectoryEvent(MyFile dir) {
    setDirectory(dir);
  }

  private MyFile directory;
  public MyFile getDirectory() {
    return directory;
  }
  public void setDirectory(MyFile directory) {
    this.directory = directory;
  }
}
